package com.baibei.sdk;

import com.baibei.ebec.sdk.ITradeApi;
import com.github.raee.runit.AndroidRUnit4ClassRunner;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

/**
 * token 测试
 * Created by ChenRui on 2017/8/3 0003 1:54.
 */
@RunWith(AndroidRUnit4ClassRunner.class)
public class TradeApiTest extends SdkTest {

    private ITradeApi mTradeApi;

    @Override
    @Before
    public void setup() {
        super.setup();
        mTradeApi = getApiProvider().getTradeApi();
    }

    @Test
    public void testRankingList() throws Exception {
        runTest(mTradeApi.getRankingList("ALL"));
    }

    @Test
    public void testMergeOrder() throws Exception {
        runTest(mTradeApi.getMergeOrders(1));
    }
}
